﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Barotrauma;
using HarmonyLib;
using GameServer = Barotrauma.Networking.GameServer;

namespace DSSI
{
    public partial class Plugin : IAssemblyPlugin
    {
        [HarmonyPatch(declaringType: typeof(GameServer))]
        [HarmonyPatch(methodName: nameof(GameServer.StartGame))]
        class GameServer_StartGame
        {
            [HarmonyPrefix]
            static void PreInit(SubmarineInfo selectedSub)
            {
                GameMain.LuaCs.Hook.Call("dssi.gameserver.startgame.preinit", selectedSub);
            }
        }
    }
}
